<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/css/common.css" rel="stylesheet" type="text/css" />
<link href="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/css/style.css" rel="stylesheet" type="text/css" />
<link href="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/css/page.css" rel="stylesheet" type="text/css" />
<script src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/js/jquery1.42.min.js" type="text/javascript"></script>
<script src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/js/common_js.js" type="text/javascript"></script>
<script src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/js/jquery.SuperSlide.2.1.1.js" type="text/javascript"></script>
<script src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/js/jquery.jqzoom.js" type="text/javascript"></script>
<title>产品详细内容页</title>
</head>

<body>
<!--顶部样式-->
<div id="top">
  <div class="top">
    <div class="Collection"><em></em><a href="#">收藏我们</a></div>
	<div class="hd_top_manu clearfix">
	  <ul class="clearfix">
	   <li class="hd_menu_tit zhuce" data-addclass="hd_menu_hover">欢迎光临本店！<a href="#" class="red">[请登录]</a> 新用户<a href="#" class="red">[免费注册]</a></li>
	   <li class="hd_menu_tit" data-addclass="hd_menu_hover"><a href="#">我的订单</a></li>
	   <li class="hd_menu_tit hd_Shopping_Cart" data-addclass="hd_menu_hover">
	     <a href="#" class="hd_menu">购物车(<b>0</b>)</a>
		 <div class="hd_Shopping_list">
		    <i></i>
		   <ul>	   
		   <li>
		    <div class="img"><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/tianma.png" /></div>
		    <div class="content"><p><a href="#">产品名称</a></p><p>颜色分类:紫花8255尺码:XL</p></div>
			<div class="Operations">
			<p class="Price">￥55.00</p>
			<p><a href="#">删除</a></p></div>
		   </li>
		   </ul>
		    <div class="Shopping_style"><a href="#" class="Shopping">查看我的购物车</a></div>
		   </div>
	   </li>
	   <li class="hd_menu_tit" data-addclass="hd_menu_hover"><a href="#">联系我们</a></li>
	   <li class="hd_menu_tit list_name" data-addclass="hd_menu_hover"><a href="#" class="hd_menu">客户服务</a>
	    <div class="hd_menu_list">
		   <ul>
		    <li><a href="#">常见问题</a></li>
			<li><a href="#">在线退换货</a></li>
		    <li><a href="#">在线投诉</a></li>
			<li><a href="#">配送范围</a></li>
		   </ul>
		</div>	   
	   </li>
	  </ul>
	</div>
  </div>
</div>
<div id="header" class="header">
  <div class="logo"><a href="#"><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/logo.png" /></a></div>
  <div class="Search">
    <p><input name="" type="text"  class="text"/><input name="" type="submit" value="搜索"  class="Search_btn"/></p>
	<p class="Words"><a href="#">苹果</a><a href="#">香蕉</a><a href="#">菠萝</a><a href="#">西红柿</a><a href="#">橙子</a><a href="#">苹果</a></p>
</div>
  <div class="phone">
   <img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/phone.png" />
  </div>
</div>
<!--导航栏样式-->
<div id="Menu">
  <div class="Menu_style">
  <div id="allSortOuterbox" class="display">
    <div class="Category"><a href="#"><em></em>所有产品分类</a></div>
    <div class="hd_allsort_out_box_new">
	 <!--左侧栏目开始-->
	 <ul class="Menu_list">	
	    <li class="name"><a href="#" >鲜果类</a>
		<div class="menv_Detail">
		 <div class="cat_pannel clearfix">
		    <ul>
			  <div class="title_name">热带水果</div>
			  <li><a href="#">菠萝</a><a href="#">香蕉</a><a href="#">猕猴桃</a><a href="#">名称</a></li>
			</ul>
			 <ul>
			  <div class="title_name">温带水果</div>
			  <li><a href="#">名称</a><a href="#">名称</a><a href="#">名称</a><a href="#">名称</a></li>
			</ul>
		  </div>
		</div>
		 
		</li>
		<li class="name"><a href="#" >精品蔬菜</a>
		
		<div class="menv_Detail">
		 <div class="cat_pannel clearfix">
		    <ul>
			  <li><a href="#">33</a><a href="#">23</a><a href="#">名称</a><a href="#">名称</a></li>
			</ul>
		  </div>
		</div>
		
		</li>
		<li class="name"><a href="#" >特色干果</a>
		<div class="menv_Detail">
		 <div class="cat_pannel clearfix">
		    <ul>
			  <li><a href="#">33</a><a href="#">名称</a><a href="#">名称</a><a href="#">名称</a></li>
			</ul>
		  </div>
		</div>
		
		</li>
		<li class="name"><a href="#" >粮油食品</a>
		<div class="menv_Detail">
		 <div class="cat_pannel clearfix">
		    <ul>
			  <li><a href="#">33</a><a href="#">名称</a><a href="#">名称</a><a href="#">名称</a></li>
			</ul>
		  </div>
		</div>
		</li>
		<li class="name"><a href="#" >调味类</a>
		<div class="menv_Detail">
		 <div class="cat_pannel clearfix">
		    <ul>
			  <li><a href="#">33</a><a href="#">名称</a><a href="#">名称</a><a href="#">名称</a></li>
			</ul>
		  </div>
		</div>
		</li>
		<li class="name"><a href="#" >鲜肉类</a>
		<div class="menv_Detail">
		 <div class="cat_pannel clearfix">
		    <ul>
			  <li><a href="#">33</a><a href="#">名称</a><a href="#">名称</a><a href="#">名称</a></li>
			</ul>
		  </div>
		</div>
		</li>
		<li class="name"><a href="#" >水产类</a>
		<div class="menv_Detail">
		 <div class="cat_pannel clearfix">
		    <ul>
			  <li><a href="#">33</a><a href="#">名称</a><a href="#">名称</a><a href="#">名称</a></li>
			</ul>
		  </div>
		</div>
		</li>
		<li class="name"><a href="#" >日用百货</a>
		<div class="menv_Detail">
		 <div class="cat_pannel clearfix">
		    <ul>
			  <li><a href="#">33</a><a href="#">名称</a><a href="#">名称</a><a href="#">名称</a></li>
			</ul>
		  </div>
		</div>
		</li>
		<li class="name"><a href="#" >宣传服务处</a>
		<div class="menv_Detail">
		 <div class="cat_pannel clearfix">
		    <ul>
			  <li><a href="#">33</a><a href="#">名称</a><a href="#">名称</a><a href="#">名称</a></li>
			</ul>
		  </div>
		</div>
		</li>
	</ul>	
	</div>		
	</div>
	<script>$("#allSortOuterbox").slide({ titCell:".Menu_list li",mainCell:".menv_Detail",	});</script>
	<!--菜单栏-->
	<div class="Navigation" id="Navigation">
		 <ul class="Navigation_name">
		   <li><a href="#">首页</a></li>
		    <li><a href="#">蔬菜</a></li>
			 <li><a href="#">水果</a></li>
			  <li><a href="#">特价商品</a></li>
			   <li><a href="#">粮油</a></li>
			    <li><a href="#">套餐礼盒</a></li>
				 <li><a href="#">限时团购</a></li>
		 </ul>	
		</div>
			<script>$("#Navigation").slide({titCell:".Navigation_name li"});</script>
			<!--购物车-->
			<div class="Shopping_car">
			    <em></em> 购物车(<b>0</b>)
			</div>
  </div>
</div>
<!--内容样式-->
<div id="page">
  <!--位置-->
 <div class="Position">当前位置：<a href="#">首页</a> > <a  href="#">产品列表</a></div>
 <!--详细内容-->
 <div class="detailed">
   <div class="showContent margin clearfix">
   <!--相册样式-->
    <div class="gallery">
	   <div class="content_style">
    <div class="Show_style">
	 <div id="play">
	  <ul class="img_ul" id="detail">
		<li class="jqzoom_pm"><a class="img_a"><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/jly_1_da.jpg" style="height: 500px;"></a></li>
		<li class="jqzoom_pm"><a class="img_a"><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/cp-2.jpg" style="height: 500px;"></a></li>
		<li class="jqzoom_pm"><a class="img_a"><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/jzbh-2.jpg" style="height: 500px;"></a></li>
		<li class="jqzoom_pm"><a class="img_a"><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/cp-1.jpg" style="height: 500px;"></a></li>
	  </ul>
	    <a href="javascript:void(0)" class="prev_a change_a" title="上一张"><span style="display: none;"></span></a>
	    <a href="javascript:void(0)" class="next_a change_a" title="下一张"><span style="display: none;"></span></a>
    </div>
    <div class="img_hd">
	 <ul class="clearfix xiaotu">
		<li class=""><a class="img_a"><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/jly_1_da.jpg" onload="imgs_load(this)"></a></li>
		<li class=""><a class="img_a"><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/cp-2.jpg" onload="imgs_load(this)"></a></li>
		<li class=""><a class="img_a"><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/jzbh-2.jpg" onload="imgs_load(this)"></a></li>
		<li class=""><a class="img_a"><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/cp-1.jpg" onload="imgs_load(this)"></a></li>
	 </ul>
	   <a class="bottom_a prev_a" style="opacity: 0.7;">&lt;</a>
	   <a class="bottom_a next_a" style="opacity: 0.7;">&gt;</a>
     </div>  
	</div>
   </div> 
 </div>
  	<!--购买样式-->
   	<div class="p_right_style">
	  <div class="title_name"><h1>种植新品 新鲜蔬菜 甜脆 精品萝卜 胡萝卜500g</h1><p class="p_ad">吃点好的 很有必要！每日新现采现包 精品无污染 尊享新鲜好蔬菜！</p></div>
	   <div id="summary">
	     <div class="p_Price">
		 <div class="dt">价&nbsp;&nbsp;&nbsp;格:</div>
		 <div class="dd"><strong class="p_dd_price" id="xs-price">￥89.00</strong><span class="y_price">￥111.00</span><span class="Grade">VIP</span></div>
		 <div class="Comment"><p>累计评论</p><h6 ><a href="#">33</a></h6></div>
	   </div>
	   <div class="Sort">
	     <dl><dt class="name">重&nbsp;&nbsp;&nbsp;量:</dt><dd class="">500k/斤</dd></dl>
		 <dl><dt class="name">数&nbsp;&nbsp;&nbsp;量:</dt><dd class="">500k/斤</dd></dl>
		 <dl><dt class="name">售&nbsp;&nbsp;&nbsp;出:</dt><dd class="">500k/斤</dd></dl>
		 </ul>
	   </div>
	   <div class="p_Submit">
	     <div class="Numbers">
		  <a href="javascript:void(0);" onclick="updatenum('del');">-</a>
		  <input id="number" name="number" type="text" value="1" class="number_text">
		  <a href="javascript:void(0);" onclick="updatenum('del');">+</a>
		 </div>
		 <div class="btn_Submit">
		  <a href="javascript:addToCart_bak(74)" class="wrap_btn1" title="加入购物车"></a>
		  <a href="javascript:addToCart(74)" class="wrap_btn2" title="立即购买"></a>
		 </div>
	   </div>
	   <div class="ProductD clearfix">
      <div class="productDL">
        <dl>
          <dt>您还可以</dt>
          <dd>
            <ul>
              <li><a href="javascript:collect(74)"><span class="ico1"></span>收藏商品</a></li>
              <li class="share"><a href="javascript:;"><span class="ico3"></span>分享到</a>
                <div class="share1" style="overflow: hidden; width: 66px;">
				<div class="bdshare_t" id="bdshare"> <a class="bds_tsina" title="分享到新浪微博" href="#"><span class="ico1"></span></a> <a class="bds_tqq" title="分享到腾讯微博" href="#"><span class="ico2"></span></a> <a class="bds_qzone" title="分享到QQ空间" href="#"><span class="ico3"></span></a> <a class="bds_t163" title="分享到网易微博" href="#"><span class="ico4"></span></a> <a class="bds_tsohu" title="分享到搜狐微博" href="#"><span class="ico5"></span></a> <a class="bds_renren" title="分享到人人网" href="#"><span class="ico6"></span></a> <a class="bds_kaixin001" title="分享到开心网" href="#"><span class="ico7"></span></a> <a class="bds_hi" title="分享到百度空间" href="#"><span class="ico8"></span></a> <a class="bds_baidu" title="分享到百度搜藏" href="#"><span class="ico9"></span></a> <a class="bds_tieba" title="分享到百度贴吧" href="#"><span class="ico10"></span></a> <a class="bds_douban" title="分享到豆瓣网" href="#"><span class="ico11"></span></a> <a class="bds_diandian" title="分享到点点网" href="#"><span class="ico12"></span></a> </div>
			<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=685351" src="http://bdimg.share.baidu.com/static/js/bds_s_v2.js?cdnversion=398480"></script>
			
			<script type="text/javascript">
			document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
			</script>
                </div>
              </li>
            </ul>
          </dd>
        </dl>
      </div>
    </div>
</div>
</div>
</div>
<div class="Show_style">
   <div class="left_style">
   <div class="sideMenu" style="margin:0 auto">
            <div class="title_name">导航栏</div>
			<h3 class="on">
			<em></em>蔬菜系列</h3>
			<ul class="name_link">
			<li>
			<a href="#">大白菜</a> | 
			<a href="#">胡萝卜</a> | 
			<a href="#">青菜</a> | 
			<a href="#">西红柿</a> | 
			<a href="#">花菜</a> | 
			<a href="#">黄瓜</a> | 
			<a href="#">大白菜</a> | 
			<a href="#">大白菜</a> | 
			</li>
			</ul>
			<h3><em></em>水果系列</h3>
			<ul>
				<li>
			<a href="#">大白菜</a> | 
			<a href="#">胡萝卜</a> | 
			<a href="#">青菜</a> | 
			<a href="#">西红柿</a> | 
			<a href="#">花菜</a> | 
			<a href="#">黄瓜</a> | 
			<a href="#">大白菜</a> | 
			<a href="#">大白菜</a> | 
			</li>
			</ul>
			<h3><em></em>粮油系列</h3>
			<ul>
			<li>
			<a href="#">大白菜</a> | 
			<a href="#">胡萝卜</a> | 
			<a href="#">青菜</a> | 
			<a href="#">西红柿</a> | 
			<a href="#">花菜</a> | 
			<a href="#">黄瓜</a> | 
			<a href="#">大白菜</a> | 
			<a href="#">大白菜</a> | 
			</li>
			</ul>
		</div><!-- sideMenu End -->
		<script type="text/javascript">
			jQuery(".sideMenu").slide({
				titCell:"h3", //鼠标触发对象
				targetCell:"ul", //与titCell一一对应，第n个titCell控制第n个targetCell的显示隐藏
				effect:"slideDown", //targetCell下拉效果
				trigger:"click",
				defaultIndex:1,
				triggerTime:150, //鼠标延迟触发时间（默认150）
				defaultPlay:true,//默认是否执行效果（默认true）
				returnDefault:false //鼠标从.sideMen移走后返回默认状态（默认false）
				});
		</script>
		<!--记录-->
   <div class="Record">
     <div class="title_name">浏览记录</div>
	 <ul>
	  <li>
	   <a href="#">
	   <P><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/cp-7.jpg" /></P>
	   <p>商品名称</p>
	   </a>
	   <p>价格:<b>￥5.30</b></p>
	  </li>
	  <li>
	   <a href="#">
	   <P><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/cp-7.jpg" /></P>
	   <p>商品名称</p>
	   </a>
	   <p>价格:<b>￥5.30</b></p>
	  </li>
	  <li>
	   <a href="#">
	   <P><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/cp-7.jpg" /></P>
	   <p>商品名称</p>
	   </a>
	   <p>价格:<b>￥5.30</b></p>
	  </li>
	 </ul>
   </div>
  </div>
  <!--右侧样式-->
 <div class="right_style">
  <div class="fixed_bar">
  <ul>
   <li class="on"><a href="#">产品介绍</a></li>
   <li><a href="#">商品评论(<b>0</b>)</a></li>
   <li><a href="#">售后保障</a></li>
  </ul>
  </div>
  <div class="sh_Service">
   <div class="title_name">售后保障</div>
   <div class="content">
    <ul>
	 <li><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/fu_img_03.png" /></li>
	 <li><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/fu_img_05.png" /></li>
	 <li><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/fu_img_07.png" /></li>
	 <li><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/fu_img_09.png" /></li>
	</ul>
   </div>
  </div>
 </div>
</div>
</div>

<!--底部样式-->
 <div class="slogen">
   <p><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/fuwu_56.png" /></p>
   <p><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/fuwu_57.png" /></p>
   <p><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/fuwu_58.png" /></p>
   <p><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/fuwu_59.png" /></p>
 </div>
 <div class="footer">
   <div class="left_footer">
    <div class="b_mc_y"><p class="tubiao"></p><p class="gy_name">品质保证 安全放心<br /><span>打造蔬菜水果专业购物平台</span></p></div>
	<div class="b_mc_y"><p class="phone_img"></p><p class="phone"><b>028-44332-2232</b><br /><span>周一至周六 10:00-22:00</span></p></div>
	<div class="b_mc_y"><p class="phone_sj_img"></p><p class="phone"><b>189083323211</b><br /><span>24小时客户服务热线</span></p></div>
   </div>
   <div class="right_footer">
   <dl class="fore1">
			<dt><strong>购物指南</strong></dt>
			<dd>
				<div><a href="#" target="_blank" rel="nofollow">购物流程</a></div>
				<div><a href="#" target="_blank" rel="nofollow">会员介绍</a></div>
				<div><a href="#" target="_blank" rel="nofollow">团购/机票</a></div>
				<div><a href="#" target="_blank" rel="nofollow">常见问题</a></div>
				<div><a href="#" target="_blank" rel="nofollow">大家电</a></div>
				<div><a href="#" target="_blank" rel="nofollow">联系客服</a></div>
			</dd>
		</dl>
		 <dl class="fore1">
			<dt><strong>购物指南</strong></dt>
			<dd>
				<div><a href="#" target="_blank" rel="nofollow">购物流程</a></div>
				<div><a href="#" target="_blank" rel="nofollow">会员介绍</a></div>
				<div><a href="#" target="_blank" rel="nofollow">团购/机票</a></div>
				<div><a href="#" target="_blank" rel="nofollow">常见问题</a></div>
				<div><a href="#" target="_blank" rel="nofollow">大家电</a></div>
				<div><a href="#" target="_blank" rel="nofollow">联系客服</a></div>
			</dd>
		</dl>
		 <dl class="fore1">
			<dt><strong>购物指南</strong></dt>
			<dd>
				<div><a href="#" target="_blank" rel="nofollow">购物流程</a></div>
				<div><a href="#" target="_blank" rel="nofollow">会员介绍</a></div>
				<div><a href="#" target="_blank" rel="nofollow">团购/机票</a></div>
				<div><a href="#" target="_blank" rel="nofollow">常见问题</a></div>
				<div><a href="#" target="_blank" rel="nofollow">大家电</a></div>
				<div><a href="#" target="_blank" rel="nofollow">联系客服</a></div>
			</dd>
		</dl>
		 <dl class="fore1">
			<dt><strong>购物指南</strong></dt>
			<dd>
				<div><a href="#" target="_blank" rel="nofollow">购物流程</a></div>
				<div><a href="#" target="_blank" rel="nofollow">会员介绍</a></div>
				<div><a href="#" target="_blank" rel="nofollow">团购/机票</a></div>
				<div><a href="#" target="_blank" rel="nofollow">常见问题</a></div>
				<div><a href="#" target="_blank" rel="nofollow">大家电</a></div>
				<div><a href="#" target="_blank" rel="nofollow">联系客服</a></div>
			</dd>
		</dl>
		 <dl class="fore1">
			<dt><strong>购物指南</strong></dt>
			<dd>
				<div><a href="#" target="_blank" rel="nofollow">购物流程</a></div>
				<div><a href="#" target="_blank" rel="nofollow">会员介绍</a></div>
				<div><a href="#" target="_blank" rel="nofollow">团购/机票</a></div>
				<div><a href="#" target="_blank" rel="nofollow">常见问题</a></div>
				<div><a href="#" target="_blank" rel="nofollow">大家电</a></div>
				<div><a href="#" target="_blank" rel="nofollow">联系客服</a></div>
			</dd>
		</dl>
   </div>
 </div>
</div>
</div>
<div id="bottom">
 <div class="footers">
  <div class="logo"></div>
  <div class="footer_link">
    <div class="links">
	<a href="#">关于我们</a> | <a href="#">联系我们</a> | <a href="#">商家入驻</a> | <a href="#">营销中心</a> | <a href="#">友情链接</a> | <a href="#">销售联盟</a> | <a href="#">法律申明</a> | <a href="#">用户体验提升计划</a>
	</div>
	<div>Copyright© 2002-2015 ，鲜篮子版权所有 信息产业部备案许可编号 川ICP备10207551号 川B1-20130131 川B2-20130376 </div>
	<div><a href="#"><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/12.gif" /></a><a href="#"><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/108_40_zZOKnl.gif" /></a><a href="#"><img src="../../../../../../../Desktop/小组项目模版/前台模板/水果/common/images/112_40_WvArIl.png" /></a></div>
  </div>
  </div>
</div>
</body>
</html>
<script type="text/javascript">
var i=0; //图片标识
var img_num=$(".img_ul").children("li").length; //图片个数
$(".img_ul li").hide(); //初始化图片	
play();
$(function(){
	$(".img_hd ul").css("width",($(".img_hd ul li").outerWidth(true))*img_num); //设置ul的长度

	$(".bottom_a").css("opacity",0.7);	//初始化底部a透明度
	//$("#play").css("height",$("#play .img_ul").height());
	if (!window.XMLHttpRequest) {//对ie6设置a的位置
		$(".change_a").css("height",$(".change_a").parent().height());
	}
	
	$(".change_a").focus(function(){
		this.blur();
	});
	$(".bottom_a").hover(function(){//底部a经过事件
		$(this).css("opacity",1);	
	},function(){
		$(this).css("opacity",0.7);	 
	});

	$(".change_a").hover(function(){//箭头显示事件
		$(this).children("span").show();
	},function(){
		$(this).children("span").hide();
	});
	
	$(".img_hd ul li").click(function(){
		i=$(this).index();
		play();
	});

	$(".prev_a").click(function(){
		//i+=img_num;
		i--;
		//i=i%img_num;
		i=(i<0?0:i);
		play();
	}); 
	$(".next_a").click(function(){
		i++;
		//i=i%img_num;
		i=(i>(img_num-1)?(img_num-1):i);
		play();
	}); 
}); 

function play(){//动画移动	
	var img=new Image(); //图片预加载
	img.onload=function(){
		img_load(img,$(".img_ul").children("li").eq(i).find("img"))
	};
	img.src=$(".img_ul").children("li").eq(i).find("img").attr("src");
	//$(".img_ul").children("li").eq(i).find("img").(img_load($(".img_ul").children("li").eq(i).find("img")));
	$(".img_hd ul").children("li").eq(i).addClass("on").siblings().removeClass("on");
	if(img_num>7){//大于7个的时候进行移动
		if(i<img_num-3){ //前3个
			$(".img_hd ul").animate({"marginLeft":(-($(".img_hd ul li").outerWidth()+4)*(i-3<0?0:(i-3)))});
		}else if(i>=img_num-3){//后3个
			$(".img_hd ul").animate({"marginLeft":(-($(".img_hd ul li").outerWidth()+4)*(img_num-7))});
		}
	}
	if(!window.XMLHttpRequest){//对ie6设置a的位置
		$(".change_a").css("height",$(".change_a").parent().height());
	}
}

function img_load(img_id,now_imgid){//大图片加载设置 （img_id 新建的img,now_imgid当前图片）
	if(img_id.width/img_id.height>1){
		if(img_id.width >=$("#play").width())
		$(now_imgid).width($("#play").width());
	}else{
		if(img_id.height>=500) $(now_imgid).height(500);
	}
	$(".img_ul").children("li").eq(i).show().siblings("li").hide(); //大小确定后进行显示
}

function imgs_load(img_id){//小图片加载设置
	if(img_id.width >=$(".img_hd ul li").width()){img_id.width = 80};
	//if(img_id.height>=$(".img_hd ul li").height()) {img_id.height=$(".img_hd ul li").height();}
}
</script>